package global

import (
	"gorm.io/gorm"
	"time"
)

type GVA_MODEL struct {
	ID        int64          `gorm:"primarykey"` // 主键ID
	CreatedAt time.Time      // 创建时间
	UpdatedAt time.Time      // 更新时间
	DeletedAt gorm.DeletedAt `gorm:"index" json:"-"` // 删除时间
}

type UserCommon struct {
	GVA_MODEL
	AuthID   int64  `json:"auth_id"   gorm:"index;comment:权限唯一标识"`
	UserName string `json:"user_name" gorm:"type:varchar(50);comment:用户名"`
	Card     string `json:"card"      gorm:"type:varchar(20);comment:身份证"`
	Phone    string `json:"phone"     gorm:"unique,type:varchar(20);comment:手机号"`
	Password string `json:"password"  gorm:"type:varchar(100);comment:密码"`
	IsUse    bool   `json:"is_use"      gorm:"comment:是否启用该用户"`
}
